package model;

import java.sql.*;

public class Message {
	private int messageId;
	private int sendUserId;
	private int recvUserId;
	private String content;
	private Timestamp sendTime;
	private char isRead;
	private char sendDelete;
	private char recvDelete;
	private String sendUserName;
	private String recvUserName;
	public Message(){}
	public Message(int messageId, int sendUserId, int recvUserId,
			String content, Timestamp sendTime, char isRead, char sendDelete,
			char recvDelete, String sendUserName, String recvUserName) {
		super();
		this.messageId = messageId;
		this.sendUserId = sendUserId;
		this.recvUserId = recvUserId;
		this.content = content;
		this.sendTime = sendTime;
		this.isRead = isRead;
		this.sendDelete = sendDelete;
		this.recvDelete = recvDelete;
		this.sendUserName = sendUserName;
		this.recvUserName = recvUserName;
	}

	public int getMessageId() {
		return messageId;
	}
	public void setMessageId(int messageId) {
		this.messageId = messageId;
	}
	public int getSendUserId() {
		return sendUserId;
	}
	public void setSendUserId(int sendUserId) {
		this.sendUserId = sendUserId;
	}
	public int getRecvUserId() {
		return recvUserId;
	}
	public void setRecvUserId(int recvUserId) {
		this.recvUserId = recvUserId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getSendTime() {
		return sendTime;
	}
	public void setSendTime(Timestamp sendTime) {
		this.sendTime = sendTime;
	}
	public char getIsRead() {
		return isRead;
	}
	public void setIsRead(char isRead) {
		this.isRead = isRead;
	}
	public char getSendDelete() {
		return sendDelete;
	}
	public void setSendDelete(char sendDelete) {
		this.sendDelete = sendDelete;
	}
	public char getRecvDelete() {
		return recvDelete;
	}
	public void setRecvDelete(char recvDelete) {
		this.recvDelete = recvDelete;
	}
	public String getSendUserName() {
		return sendUserName;
	}
	public void setSendUserName(String sendUserName) {
		this.sendUserName = sendUserName;
	}
	public String getRecvUserName() {
		return recvUserName;
	}
	public void setRecvUserName(String recvUserName) {
		this.recvUserName = recvUserName;
	}
	@Override
	public String toString() {
		return "Message [content=" + content + ", isRead=" + isRead
				+ ", messageId=" + messageId + ", recvDelete=" + recvDelete
				+ ", recvUserId=" + recvUserId + ", recvUserName="
				+ recvUserName + ", sendDelete=" + sendDelete + ", sendTime="
				+ sendTime + ", sendUserId=" + sendUserId + ", sendUserName="
				+ sendUserName + "]";
	}
}
